<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">
    <meta charset="utf-8">
    <title>{$title}</title>
    <link rel="shortcut icon" href="__STATIC__/src/common/img/cauliflower-small.png" type="image/x-icon" />
    <link rel="stylesheet" type="text/css"  href="__STATIC__/src/common/css/bootstrap.css" />
    <link rel="stylesheet" type="text/css"  href="__STATIC__/src/common/css/common.css" />
</head>
<body>
{include file="common@common/header"}
<div class="">
    <div class="">
        <div class="col-md-2 col-md-offset-1">
            {include file="common/leftPanel"}
        </div>
        <div class="col-md-5">
            <form class="form-horizontal" action="" method="POST">
                <div class="form-group has-feedback">
                    <label for="studentName" class="col-md-2 control-label">学生名称：</label>
                    <div class="col-md-8">
                        <input type="text" name="studentName" class="form-control" id="studentName" placeholder="请输入教师名称" maxlength="30" onblur="checkName(this.value)">
                        <span id="nameSuccess" class="glyphicon glyphicon-ok form-control-feedback text-success hidden"></span>
                        <span id="nameDanger" class="glyphicon glyphicon-remove form-control-feedback text-danger hidden"></span>
                        <span id="nameError" class="text-danger hidden">您设置的学生名称过长或其中包含空格不合法！</span>
                        <span id="nameRepeat" class="text-danger hidden">该名称已存在！</span>
                    </div>
                </div>
                <div class="form-group has-feedback">
                    <label for="studentPassword" class="col-md-2 control-label">学生密码：</label>
                    <div class="col-md-8">
                        <input type="password" name="studentPassword" class="form-control" id="studentPassword" placeholder="请输入教师密码" maxlength="25" onblur="checkPassword(this.value)">
                        <span id="passwordSuccess" class="glyphicon glyphicon-ok form-control-feedback text-success hidden"></span>
                        <span id="passwordDanger" class="glyphicon glyphicon-remove form-control-feedback text-danger hidden"></span>
                        <span id="passwordError" class="text-danger hidden">密码必须包含数字、英文字符和特殊字符，且长度需在8位到25位之间！</span>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-md-offset-2 col-md-6">
                        <button type="submit" onclick="return checkStudent();" class="btn btn-primary">添加</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<script src="__STATIC__/src/common/js/jquery-3.2.1.js"></script>
<script src="__STATIC__/src/common/js/bootstrap.js"></script>
<script src="__STATIC__/src/common/js/admin.js"></script>
</body>
</html>